<template>
    <div>
        <button @click="handleOn">发射事件</button>
    </div>
</template>
<script>
import emitter from './utils/eventbus'
export default {
    name: '',
    data() {
       return {}
    },
    created() {},
    methods: {
        handleOn() {
            //发射多个事件
            emitter.emit("changeOn", {name: "yzh", age: 18});
            emitter.emit("changeOn2", {name: "yzh2", age: 19});
        }
    },
}
</script>
<style>
</style>
